<?php if(!defined('IN_UCHOME')) exit('Access Denied'); ?><?php $_TPL['titles'] = array('动态'); ?>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?php if($space) { ?><?=$space['username']?> - <?php } ?><?=$_SCONFIG['sitename']?> - Powered by UCenter Home</title>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<style type="text/css">
@import url(template/<?=$_SC['template']?>/common.css);
<?php if(!empty($space['theme'])) { ?>
@import url(theme/<?=$space['theme']?>/style.css);
<?php } ?>
<?php if(!empty($space['css'])) { ?>
<?=$space['css']?>
<?php } ?>
</style>
<?php if($space['uid']) { ?>
<link rel="alternate" type="application/rss+xml" href="rss.php?uid=<?=$space['uid']?>" title="<?=$space['username']?>" />
<?php } ?>
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=1" />
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div id="wrap">
<div id="header">
<h2><a href="index.php"><img src="<?=$_SCONFIG['sitelogo']?>" alt="<?=$_SCONFIG['sitename']?>" /></a></h2>
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul id="menu">
<li><a href="space.php?do=home">首页</a><?php if($space['self'] && $space['credit']<10) { ?><a href="space.php?do=home&view=guide" class="edit">向导</a><?php } ?></li>
<li><a href="space.php">个人主页</a></li>
<li><a href="space.php?do=friend">好友</a><a href="javascript:;" onclick="openSub(this,'friend');" class="drop">&nbsp;</a></li>
<li><a href="network.php">随便看看</a><?php if(empty($_SCONFIG['showall'])) { ?><a href="space.php?do=home&view=all" class="edit">近况</a><?php } ?></li>
<li><a href="space.php?do=pm"><span id="span_newpm">私信</span><?php if(!empty($_SGLOBAL['member']['newpm'])) { ?><script>newpm();</script><?php } ?></a><a href="javascript:;" onclick="openSub(this,'pm');" class="drop">&nbsp;</a></li>
</ul>
<div id="op">
<a href="cp.php">设置</a><span class="pipe">|</span>
<a href="cp.php?ac=privacy">策略</a><span class="pipe">|</span>
<?php if($space['self'] && $space['credit']>=10) { ?><a href="space.php?do=home&view=guide">向导</a><span class="pipe">|</span><?php } ?>
<a href="cp.php?ac=common&op=logout">退出</a>
</div>
<?php } else { ?>
<div id="op">
<a href="index.php">首页</a><span class="pipe">|</span>
<a href="space.php">我的空间</a><span class="pipe">|</span>
<a href="help.php">帮助</a>
</div>
<?php } ?>
</div>
<div id="submenu">
<div id="subfriend" class="submenu">
<ul>
<li><a href="space.php?do=friend">好友列表</a></li>
<li><a href="space.php?do=friend&view=visitor">我的访客</a></li>
<li><a href="space.php?do=friend&view=trace">我的足迹</a></li>
<li><a href="space.php?do=friend&view=online">在线用户</a></li>
<li class="line"><a href="cp.php?ac=friend&op=find">寻找好友</a></li>
<li><a href="cp.php?ac=invite">邀请好友</a></li>
</ul>
</div>
<div id="subpm" class="submenu">
<ul>
<li><a href="space.php?do=pm">查看未读</a></li>
<li><a href="space.php?do=pm&view=inbox">收件箱</a></li>
<li><a href="space.php?do=pm&view=outbox">发件箱</a></li>
<li><a href="space.php?do=notice">通知</a></li>
<li class="line"><a href="cp.php?ac=pm">发送私信</a></li>
</ul>
</div>
</div>
<div id="content" class="s_clear">
<div id="side">
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul id="app" class="app_list">
<li class="app-doing"><a href="space.php?do=doing">迷你博客</a></li>
<li class="app-blog"><a href="space.php?do=blog">日志</a><em><a href="cp.php?ac=blog">发表</a></em></li>
<li class="app-photo"><a href="space.php?do=album">相册</a><em><a href="cp.php?ac=upload">上传</a></em></li>
<li class="app-mtag"><a href="space.php?do=thread">话题</a><em><a href="cp.php?ac=thread">发起</a></em></li>
<li class="app-share"><a href="space.php?do=share">分享</a></li>

<?php if(is_array($_SGLOBAL['app'])) { foreach($_SGLOBAL['app'] as $key => $value) { ?>
<?php if($key != UC_APPID && $value['open']) { ?>
<li class="app-<?=$value['type']?>"><a href="space.php?do=app&appid=<?=$key?>" title="<?=$value['name']?>"><?=$value['name']?></a></li>
<?php } ?>
<?php } } ?>
</ul>
<?php } else { ?>
<?php if(empty($space['theme']) && empty($space['css'])) { ?>
<?php if(empty($_SGLOBAL['nologinform'])) { ?>
<form id="loginform" name="loginform" action="do.php?ac=login&ref" method="post">
<div style="padding: 10px;">
<p class="gray"><label for="username">用户名：</label></p>
<p><input type="text" name="username" id="username" class="t_input" value="<?=$membername?>" size="15" style="width: 100px;" /></p>
<p class="gray"><label for="password">密　码：</label></p>
<p><input type="password" name="password" id="password" class="t_input" size="15" style="width: 100px;" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" checked /> <label for="cookietime">下次自动登录</label></p>
<p style="padding-top: 4px;">
<input type="hidden" name="refer" value="space.php?do=home" />
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit" style="padding: 0; width: 50px;" />
<a href="do.php?ac=lostpasswd">找回密码</a>
</p>
</div>
</form>
<?php } ?>
<ul class="sidelink">
<li><a href="do.php?ac=register"><strong>注册</strong>期待您的入住</a></li>
<li><a href="help.php"><strong>页面介绍</strong>了解一下您的家</a></li>
<?php if($_SCONFIG['networkpublic']) { ?><li><a href="network.php"><strong>随便看看</strong>看看大家在做什么</a></li><?php } ?>
</ul>
<?php } ?>
<?php } ?>

<?php if(empty($space['theme']) && empty($space['css'])) { ?>
<?php adshow('leftside'); ?><!-- 左侧栏广告-->
<?php } ?>
</div>
<div id="mainarea">
<?php } else { ?>
<?php obclean();
	@header("Expires: -1");
	@header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
	@header("Pragma: no-cache");
	@header("Content-type: application/xml; charset=$_SC[charset]");
	echo '<'."?xml version=\"1.0\" encoding=\"$_SC[charset]\"?>\n";
	echo "<root><![CDATA["; ?>
<?php } ?>

<script>
function notice_show() {
if($('help_notice').style.display=='') {
$('help_notice').style.display='none';
} else {
$('help_notice').style.display='';
}
}
</script>

<?php if($_SCONFIG['showall']) { ?>
<div class="c_header a_header">
<a href="space.php?uid=<?=$space['uid']?>"><img src="<?php echo avatar($space[uid],small); ?>" alt="<?=$space['username']?>" class="avatar" /></a>
<h1><?php if($space['self']) { ?>首页<?php } else { ?>个人动态<?php } ?></h1>
<a href="space.php?uid=<?=$space['uid']?>" class="spacelink"><?php if($space['self']) { ?>我<?php } else { ?><?=$space['username']?><?php } ?>的空间</a>
</div>

<?php if($space['self']) { ?>
<div class="tabs_header">
<ul class="tabs">
<?php if($space['friendnum']) { ?><li<?=$actives['we']?>><a href="space.php?uid=<?=$space['uid']?>&do=home">好友动态</a></li><?php } ?>
<li<?=$actives['all']?>><a href="space.php?uid=<?=$space['uid']?>&do=home&view=all">网站近况</a></li>
<li<?=$actives['me']?>><a href="space.php?uid=<?=$space['uid']?>&do=home&view=me">我的动态</a></li>
</ul>
</div>
<?php } ?>

<div class="h_status">
<table width="100%"><tr><td>以时间排序</td><td align="right"><a href="javascript:;" onclick="notice_show();">帮助提示</a></td></tr></table>
</div>
<?php } ?>

<div class="side_right">
<div class="wide">

<?php if(empty($_SCONFIG['showall'])) { ?>
<table width="100%"><tr><td><h1 class="l_text"><?php if($_GET['view']=='me') { ?>个人动态<?php } elseif($_GET['view']=='all') { ?>网站近况<?php } else { ?>好友动态<?php } ?></h1></td><td align="right"><?php if($space['self']) { ?><a href="javascript:;" onclick="notice_show();">帮助提示</a><?php } ?></td></tr></table>
<?php } ?>

<div class="notice" id="help_notice" style="display:<?=$shownotice_style?>;">
<p><strong>欢迎您，<?=$space['username']?>，这里就是您的家。</strong><br>
您可以在这里可以<a href="space.php?do=doing" target="_blank">写迷你博客</a>、<a href="cp.php?ac=blog" target="_blank">发表日志</a>、<a href="cp.php?ac=upload" target="_blank">上传图片</a>，与志同道合的人一起<a href="cp.php?ac=thread" target="_blank">讨论话题</a>。<br>
在<a href="cp.php?ac=friend&op=find" target="_blank">寻找熟悉的用户并加为好友</a>后，您发表的点点滴滴才会及时的通知到好友而被分享或评论，同时，您的首页也只显示您的好友们的动态了。<br>通过策略中的<a href="cp.php?ac=privacy" target="_blank">隐私设置</a>，您完全可以决定自己的信息能够被哪些用户看到。</p>
</div>

<div class="box feed">
<?php if($list) { ?>
<?php if(is_array($list)) { foreach($list as $day => $values) { ?>
<h4><?php if($day=='today') { ?>今天<?php } elseif($day=='yesterday') { ?>昨天<?php } else { ?><?=$day?><?php } ?></h4>
<ul id="feed_ul">
<?php if(is_array($values)) { foreach($values as $value) { ?>
<li class="type_<?=$value['icon']?>" id="feed_<?=$value['feedid']?>_li">
<?php if($notime) { ?>
<a href="space.php?do=feed&icon=<?=$value['icon']?>&view=<?=$_GET['view']?>" class="type"><?=$value['icon']?></a>
<?php } else { ?>
<a href="space.php?uid=<?=$value['uid']?>&do=feed&appid=<?=$value['appid']?>&icon=<?=$value['icon']?>&view=me" class="type"><?=$value['icon']?></a>
<?php } ?>
<h6><?=$value['title_template']?><?php if(empty($notime)) { ?> <span class="time"><?php echo sgmdate('m-d H:i',$value[dateline],1); ?></span><?php } ?></h6>
<?php if($value['image_1']) { ?>
<a href="<?=$value['image_1_link']?>"><img src="<?=$value['image_1']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['image_2']) { ?>
<a href="<?=$value['image_2_link']?>"><img src="<?=$value['image_2']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['image_3']) { ?>
<a href="<?=$value['image_3_link']?>"><img src="<?=$value['image_3']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['image_4']) { ?>
<a href="<?=$value['image_4_link']?>"><img src="<?=$value['image_4']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['body_template']) { ?>
<div class="detail" <?php if($value['image_3']) { ?>style="clear: both;"<?php } ?>><?=$value['body_template']?></div>
<?php } ?>
<?php if($value['body_general']) { ?>
<div class="quote"><span class="q"><?=$value['body_general']?></span></div>
<?php } ?>
<?php if($value['uid']==$_SGLOBAL['supe_uid']) { ?>
<a href="cp.php?ac=feed&op=delete&feedid=<?=$value['feedid']?>" class="float_del" id="a_feed_<?=$value['feedid']?>" onclick="ajaxmenu(event, this.id, 99999)">删除</a>
<?php } elseif($space['self'] && empty($_GET['view'])) { ?>
<a href="cp.php?ac=feed&op=ignore&icon=<?=$value['icon']?>&uid=<?=$value['uid']?>&feedid=<?=$value['feedid']?>" id="a_feedicon_<?=$value['feedid']?>" onclick="ajaxmenu(event, this.id, 99999)" class="float_del float_block">屏蔽</a>
<?php } ?>
</li>

<?php } } ?>
</ul>
<?php } } ?>
<?php } else { ?>
<h4>今天</h4>
<ul id="feed_ul">
<li>还没有动态。</li>
</ul>
<?php } ?>
</div>
<div class="page"><?=$multi['html']?></div>
</div>
<div class="narrow">

<?php if($notices) { ?>
<div class="inbox_notice">
<h2>通知 <a href="space.php?do=notice" class="title_action">查看全部</a></h2>
<ul>
<?php if(is_array($notices)) { foreach($notices as $type => $count) { ?>
<li><a href="space.php?do=notice&type=<?=$type?>"><strong><?=$count?></strong> 条新<?=$noticetypes[$type]?></a></li>
<?php } } ?>
</ul>
</div>
<?php } ?>

<?php if($addfriendlist) { ?>
<script>
function myfriend(id) {
var liid = id.substr(6);
$('friend_'+liid).style.display = "none";
}
</script>
<div class="f_request">
<h2>好友 <a href="cp.php?ac=friend&op=request" class="title_action">查看全部</a></h2>
<ul>
<?php if(is_array($addfriendlist)) { foreach($addfriendlist as $value) { ?>
<li id="friend_<?=$value['uid']?>">
<strong><a href="space.php?uid=<?=$value['uid']?>"><?=$value['username']?></a></strong>
<?php if($value['note']) { ?><?=$value['note']?><?php } else { ?>申请好友<?php } ?>
<p><a href="cp.php?ac=friend&op=add&uid=<?=$value['uid']?>" id="a_f_r_<?=$value['uid']?>" onclick="ajaxmenu(event, this.id, 99999, '', -1)">批准</a><span class="pipe">|</span>
<a href="cp.php?ac=friend&op=ignore&uid=<?=$value['uid']?>&confirm=1" id="a_f_i_<?=$value['uid']?>" onclick="ajaxmenu(event, this.id, 1, 'myfriend')">拒绝</a></p>
</li>
<?php } } ?>
</ul>
</div>
<?php } ?>

<?php if($pokelist) { ?>
<script>
function mypoke(id) {
var liid = id.substr(6);
$('poke_'+liid).style.display = "none";
}
function mypoke_all(id) {
$('poke_ul').style.display = "none";
}
</script>
<div class="poke">
<h2>招呼 <a href="cp.php?ac=poke&op=ignore" id="a_poke" onclick="ajaxmenu(event, this.id, 1000, 'mypoke_all')" class="title_action">全部忽略</a></h2>
<ul id="poke_ul">
<?php if(is_array($pokelist)) { foreach($pokelist as $value) { ?>
<li id="poke_<?=$value['uid']?>">
<strong><a href="space.php?uid=<?=$value['uid']?>"><?=$value['username']?></a></strong>
<?php if($value['note']) { ?><?=$value['note']?><?php } else { ?>打个招呼<?php } ?>
<p>
<a href="cp.php?ac=poke&op=reply&uid=<?=$value['uid']?>" id="a_p_r_<?=$value['uid']?>" onclick="ajaxmenu(event, this.id, 99999, '', -1)">回复</a><span class="pipe">|</span>
<a href="cp.php?ac=poke&op=ignore&uid=<?=$value['uid']?>" id="a_p_i_<?=$value['uid']?>" onclick="ajaxmenu(event, this.id, 1, 'mypoke')">忽略</a></p>
</li>
<?php } } ?>
</ul>
</div>
<?php } ?>

<?php if($space['self']) { ?>
<?php if(empty($_SCONFIG['closeinvite'])) { ?>
<div>
<h2>邀请好友</h2>
<ul>
<li>邀请好友一起加入进来，分享点点滴滴。<a href="cp.php?ac=invite">邀请好友</a></li>
</ul>
</div>
<?php } ?>
<div>
<h2>寻找好友</h2>
<ul>
<li>找找站内有更多志同道合的朋友吗？<a href="cp.php?ac=friend&op=find">立即找找看</a></li>
</ul>
</div>
<?php } ?>

<?php adshow('rightside'); ?><!-- 右侧栏广告-->
<br>
</div>
</div>
<div class="f_status f_status_w s_clear">
<a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP">TOP</a>
</div>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
</div>
</div>

<div id="footer">
<p class="copyright" title="<?php echo debuginfo(); ?>">
<?=$_SCONFIG['sitename']?> &nbsp; <a href="mailto:<?=$_SCONFIG['adminemail']?>">联系我们</a>
<?php if($_SCONFIG['miibeian']) { ?> &nbsp;<a  href="http://www.miibeian.gov.cn" target="_blank"><?=$_SCONFIG['miibeian']?></a><?php } ?>
 &nbsp; Powered by <a  href="http://u.discuz.net" target="_blank">UCenter Home</a> <span title="<?php echo X_RELEASE; ?>"><?php echo X_VER; ?></span>
 <?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>
 &copy; 2001-2008 <a  href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>
</p>
</div>
</div>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>
<?php adshow('footer'); ?><!-- 页脚广告-->

<?php if($_SGLOBAL['supe_uid']) { ?>
<?php if(!isset($_SCOOKIE['checkpm'])) { ?>
<script type="text/javascript" src="cp.php?ac=pm&op=checknewpm&rand=<?php echo rand(0,999) ?>"></script>
<?php } ?>
<?php if(!isset($_SCOOKIE['synfriend'])) { ?>
<script type="text/javascript" src="cp.php?ac=friend&op=syn&rand=<?php echo rand(0,999) ?>"></script>
<?php } ?>
<?php } ?>
</body>
</html>
<?php } ?>
<?php ob_out(); ?><?php subtplcheck('template/default/space_feed|template/default/header|template/default/space_feed_li|template/default/footer', '1215535163', 'template/default/space_feed'); ?>